package cn.donting.jme.expansion.tool.transform;

import com.jme3.math.FastMath;
import com.jme3.math.Vector3f;

public enum Axis {
    X(Vector3f.UNIT_X, Vector3f.UNIT_Y,Vector3f.UNIT_Z),
    Y(Vector3f.UNIT_Z, Vector3f.UNIT_Y,Vector3f.UNIT_X),
    Z(Vector3f.UNIT_X, Vector3f.UNIT_Z,Vector3f.UNIT_Y);

    private Vector3f vertex1;
    private Vector3f vertex2;
    private Vector3f normal;

    Axis(Vector3f vertex1, Vector3f vertex2,Vector3f normal) {
        this.vertex1 = vertex1;
        this.vertex2 = vertex2;
        this.normal = normal;
    }

    public Vector3f getVertex1() {
        return vertex1;
    }

    public Vector3f getVertex2() {
        return vertex2;
    }

    public Vector3f normal() {
        return normal.clone();
    }

}